package fileProcessors;

import javax.swing.JButton;
import javax.swing.JPanel;


/**
 * Klasse f�r FileProcessors, die ein extra Options-Panel besitzen. Ok-Button und Cancel-Button m�ssen instanziert werden.
 * @author Wolfi
 *
 */
public abstract class PanelFileProcessor extends FileProcessor{
	public JButton btnOK;
	public JButton btnCancel;
	public abstract JPanel getPanel();
	public PanelFileProcessor(String txtProcessBtn, String includeFilename, String excludeFilename, String resultFilename){
		super(txtProcessBtn, includeFilename, excludeFilename, resultFilename);
		btnOK=new JButton("OK");
		btnOK.setActionCommand("OK_Processor_Options");
		btnCancel=new JButton("Cancel");
		btnCancel.setActionCommand("Cancel_Processor_Options");
	}
	
	public PanelFileProcessor(String txtProcessBtn){
		super(txtProcessBtn);
	}
	public PanelFileProcessor(){
		super();
	}
	

	public JButton getOkButton(){
		return btnOK;
	}
	public JButton getCancelButton(){
		return btnCancel;
	}
}
